import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
import uView from 'uview-ui'
import store from '@/store';
let vuexStore = require("@/store/$u.mixin.js");


Vue.mixin(vuexStore);
Vue.use(uView)


// 将store放入Vue对象创建中
const app = new Vue({
	store,
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif

//挂在全局组件
import LoginPop from '@/components/login-pop.vue'
import tipPop from '@/components/tip-pop.vue'


Vue.component('tipPop', tipPop)
Vue.component('LoginPop', LoginPop)